let obj = {
    a: 1,
    b: 2
}

console.log(Object.keys(obj));
